import request from '@/utils/request'

// 删除文件
export const removeTaskApi = taskId => {
    return request({
        url: `/tsk/task/${taskId}`,
        method: 'delete'
    })
}

// 一键群发
export const useTaskApi = (taskId) => {
    return request({
        url: `/tsk/task/run/${taskId}`,
        method: 'post'
    })
}